package com.tbit.uqbike.object.pojo.dto;

import com.tbit.uqbike.object.value.LoginInfo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author yee_
 * @version 1.0
 * @date 2023/2/21 20:10
 */
@Getter
@Setter
@Accessors(chain = true)
@ToString
public class RideCardUserDelayDTO {
    /**
     * 区域id
     */
    @NotNull(message = "请选择区域")
    private Integer accountId;
    /**
     * 延长时间
     */
    @NotNull(message = "请填写延长日期(天)")
    @Min(value = 1, message = "最少延长1天")
    private Integer delayDays;
    /**
     * 停运时间
     */
    @NotNull(message = "请填写停运开始时间")
    private Long stopStartTime;
    /**
     * 停运时间
     */
    @NotNull(message = "请填写停运结束时间")
    private Long stopEndTime;
    /**
     * 备注
     */
    @NotNull(message = "请填写备注")
    @Length(max = 32, message = "备注过长")
    private String remark;

    /**
     * 备注
     */
    private String pwd;

    private LoginInfo loginInfo;

}
